<meta charset="utf-8">
<div data-page="form-check" class="page navbar-through no-toolbar note-list">
	<div class="navbar">
		<div class="navbar-inner">
			<div class="left">
				<a href="#" class="link back icon-only"><i class="ti-arrow-circle-left"></i></a>
			</div>
			<div class="center">我的审批</div>
			<div class="right"></div>
			<div class="subnavbar">
				<div class="buttons-row">
					<a href="#" class="button prev" current="<%=current%>">上一月</a>
					<a class="button active"><%=current%></a>
					<a href="#" class="button next" current="<%=current%>">下一月</a>
				</div>
			</div>
		</div>
	</div>
	
	<div class="page-content with-subnavbar">
		
		<div class="list-block media-list leave-note-list">
		
			<ul>
			<% forms.forEach(function(form){ %>
				<li>
				<% if (form.type == sails.config.application.sysform.note) { %>
				<a href="<%=sails.config.application.appPrefix%>/note/get?method=detail&pkid=<%= form.note%>" class="item-link item-content">
				<% }else{ %>
				<a href="<%=sails.config.application.appPrefix%>/form/get?method=detail&pkid=<%= form.id%>" class="item-link item-content">
				<% } %>
					<div class="item-inner">
						<div class="item-title-row">
							<div class="item-title"><%=form.name%></div>
							<div class="item-after"><%=sails.config.application.formState[form.state]%></div>
						</div>
						<div class="item-subtitle"><%= sails.formatTime(form.updatedAt)%></div>
						<div class="item-subtitle"><%=form.owner.name%></div>
					</div>
				</a>
				</li>
			<% }) %>
			</ul>
		
		</div>
	</div>
	
</div>